<div>
    <div class="modal-header">
        <h1>{{merchant.username}}商家具体信息</h1>
    </div>
    <div class="modal-body">
        <table id="infoTable" width="100%">
            <tr>
                <td>
                    <div style="margin-top: 2%;"></div>
                    <div>
                        <img src="{{merchant.idCard}}" class="img-rounded" style="width: 200px; height: 140px;" alt="身份证"
                            name="card" />
                    </div>
                </td>
                <td>
                    <div style="width: 250px">
                        <img src="{{merchant.portrait}}" class="img-rounded" style="width: 200px; height: 140px;"
                            alt="头像" name="po" />
                    </div>
                </td>
            </tr>
            <tr>
            </tr>
            <tr>
                <td style="width: 80%">
                    <div name="nameDiv">
                        <h5>商家名称</h5>
                        <label>{{merchant.username}}</label>
                    </div>
                    <div name="addressDiv">
                        <h5>商家地址</h5>
                        <label>{{merchant.address}}</label>
                    </div>
                </td>
            </tr>

            <tr>
                <td>
                    <div name="statusDiv">
                        <h5>现状态</h5>
                        <div ng-switch on="merchant.status">
                            <div ng-switch-when="0">
                                <span class="label label-default">未审核</span>
                            </div>
                            <div ng-switch-when="1">
                                <span class="label label-success">已审核</span>
                            </div>
                            <div ng-switch-when="2">
                                <span class="label label-warning">已拉黑</span>
                            </div>
                            <div ng-switch-when="3">
                                <span class="label label-info">驳回</span>
                            </div>
                            <div ng-switch-default>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <div name="reject">
                        <div ng-switch on="merchant.status">
                            <div ng-switch-when="0">
                                <h5>驳回理由</h5>
                               <span class="label label-warning">{{error}}</span>
                                <textarea ng-model="merchant.reason"></textarea>
                                
                            </div>
                            <div ng-switch-when="3">
                                <h5>驳回理由</h5>
                                {{merchant.reason}}
                            </div>
                            <div ng-switch-default>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div class="modal-footer">
        <div ng-switch on="merchant.status">
            <div ng-switch-when="0">
               <button class="btn btn-primary" ng-click="operate(1)">激活</button>
               <button class="btn btn-primary" ng-click="reject(merchant.reason)">驳回</button>
            </div>
            <div ng-switch-when="1">
                <button class="btn btn-primary" ng-click="operate(2)">拉黑</button>
            </div>
            <div ng-switch-when="2">
                 <button class="btn btn-primary" ng-click="operate(1)">拉白</button>
            </div>
            <div ng-switch-when="3">
            </div>
            <div ng-switch-default>
            </div>
        </div>
        <button class="btn btn-default" ng-click="cancel()">退出</button>
    </div>